package com.ruoyi.common.core.plus.web.page;

import com.baomidou.mybatisplus.core.metadata.OrderItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author liyang
 * @date 2021-08-16 20:53:42
 * @apiNote
 */
@Data
@ApiModel(value = "分页Dto")
public class PageDto<T> implements Serializable {

    @ApiModelProperty(value = "页")
    private int currentPage;
    @ApiModelProperty(value = "行")
    private int pageSize;
    @ApiModelProperty(value = "总条数")
    private int total;
    @ApiModelProperty(value = "总页数")
    private int totalPage;
    @ApiModelProperty(value = "结果")
    private List<T> data;
    @ApiModelProperty(value = "排序")
    private OrderItem orderItem;

    public PageDto() {
        this.currentPage = 1;
        this.pageSize = 10;
    }
}
